<template>
    <div class="home-container">
        <my-header></my-header>
        <div class="home-main-box">
            <my-aside></my-aside>
            <div class="home-main-body">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>
<script setup>
import MyHeader from './subcomponents/Myheader.vue'
import MyAside from './subcomponents/MyAside.vue'
</script>
<style scoped>
.home-container {
  --header-bg-color: #2f3c4e;
  --aside-bg-color: #3a495e;
  --text-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

.home-main-box {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.my-header {
  background-color: var(--header-bg-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.my-aside {
  background-color: var(--aside-bg-color);
  color: var(--text-color);
  width: 220px;
  padding: 1rem 0;
}

.my-aside ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.my-aside li {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

.my-aside li:hover,
.my-aside li.active {
  background-color: #293445;
}

.home-main-body {
  padding: 2rem;
  background-color: #f9f9fb;
  overflow-y: auto;
  flex: 1;
}

.card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .my-aside {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .home-main-body {
    padding: 1rem;
  }
}
</style>